[6.19.z] Fix failing errata ui tests - #20897
Closed
Satellite-QE wants to merge 1 commit into
Closed
Conversation
* fix failing errata tests * add subscription-manager repo command to fix failing test * remove no containers mark * remove no_containers from test_positive_errata_search_type (cherry picked from commit 6e909f9)
Collaborator
Author
|
Contributor
Reviewer's GuideAdjust errata UI tests to avoid timing issues and dependencies on removed content hosts functionality by waiting for applicability tasks, standardizing timestamps, and ensuring repos are refreshed after package installs. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The logic to capture
install_timestamp, runyum install/subscription-manager repos, and wait for applicability tasks is repeated across multiple tests; consider extracting this into a shared helper or fixture to reduce duplication and keep the tests easier to maintain. - The
search_querystring forwait_for_tasks(e.g.,'Bulk generate applicability for host {hostname} and started_at >= "{install_timestamp}"') is duplicated and somewhat brittle; introducing a small builder/helper or constant for this query would make future changes less error-prone.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The logic to capture `install_timestamp`, run `yum install`/`subscription-manager repos`, and wait for applicability tasks is repeated across multiple tests; consider extracting this into a shared helper or fixture to reduce duplication and keep the tests easier to maintain.
- The `search_query` string for `wait_for_tasks` (e.g., `'Bulk generate applicability for host {hostname} and started_at >= "{install_timestamp}"'`) is duplicated and somewhat brittle; introducing a small builder/helper or constant for this query would make future changes less error-prone.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
This pull request has not been updated in the past 45 days. |
|
This pull request is now being closed after stale warnings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherrypick of PR: #20840
Problem Statement
Some Errata UI tests failing due to content hosts page removal
Solution
Remove/fix parts of test that use content hosts page
Related Issues
https://issues.redhat.com/browse/SAT-42273
PRT test Cases example
PRT usage reference link: https://github.com/SatelliteQE/robottelo/wiki/Robottelo-Pull-Request-Testing-(PRT)-Process#usage-examples
Summary by Sourcery
Adjust errata UI tests to avoid removed content hosts page and ensure errata applicability is reflected after package installation tasks complete.
Bug Fixes:
Enhancements:
Summary by Sourcery
Stabilize errata UI tests by ensuring repository metadata and errata applicability are updated and verifiable after package installation.
Bug Fixes:
Enhancements:
Tests: